﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="kcdd.aspx.cs" Inherits="Admin_kcgl_kcdd" EnableEventValidation="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .eDataTable
    {
        font-size: medium;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="margin-top:10px">&nbsp;
    <asp:HyperLink ID="HyperLink2" runat="server" Font-Underline="False" 
        NavigateUrl="~/Admin/kcgl/kcdd.aspx" ForeColor="Red" CssClass="btn01">考试地点设置</asp:HyperLink>
&nbsp;
    <asp:HyperLink ID="HyperLink3" runat="server" Font-Underline="False" 
        NavigateUrl="~/Admin/kcgl/zykc.aspx" CssClass="btn01">专用考场指定</asp:HyperLink>
&nbsp;
    <asp:HyperLink ID="HyperLink4" runat="server" Font-Underline="False" 
        NavigateUrl="~/Admin/kcgl/kcy.aspx" CssClass="btn01">考场预安排</asp:HyperLink>
&nbsp;
    <asp:HyperLink ID="HyperLink5" runat="server" Font-Underline="False" 
        NavigateUrl="~/Admin/kcgl/kcgl.aspx" CssClass="btn01" >考场管理</asp:HyperLink>
    </div>
    <div style=" margin:10px auto; font-size: x-large; font-weight: bold; color: #666666;" 
        align="center">
        考试地点设置
&nbsp;
<p style="font-size: small">&nbsp; &nbsp;</p>
<asp:GridView ID="GridView2" CssClass="eDataTable" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="classNo" 
            onrowdatabound="GridView2_RowDataBound" Width="100%" AllowPaging="True" 
            onpageindexchanging="GridView2_PageIndexChanging" 
            Font-Bold="False" BackColor="White" BorderColor="#999999" 
            BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical">
            <AlternatingRowStyle BackColor="#DCDCDC" />
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" Width="5%" />
                </asp:TemplateField>
                <asp:BoundField DataField="classNo" HeaderText="考场号" SortExpression="classNo" >
                <HeaderStyle HorizontalAlign="Left" Width="15%" />
                </asp:BoundField>
                <asp:BoundField DataField="place" HeaderText="考试地点" 
                    SortExpression="place" >
                <HeaderStyle HorizontalAlign="Left" Width="25%" />
                </asp:BoundField>
                <asp:BoundField DataField="maxNum" HeaderText="可考人数" 
                    SortExpression="maxNum" >
                <HeaderStyle HorizontalAlign="Left" Width="15%" />
                </asp:BoundField>
                <asp:BoundField DataField="wheClass" HeaderText="是否为专用考场" 
                    SortExpression="wheClass" >
                <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="多选">
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </EditItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" Width="5%" />
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <PagerTemplate>
                当前第:
                <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                页/共:
                <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                页
                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" 
                    Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" 
                    CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" 
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" 
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                转到第
                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="30px" ForeColor="Black" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'/>页
                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-2" 
                    CommandName="Page" Text="GO"/>
            </PagerTemplate>
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#0000A9" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#000065" />
        </asp:GridView>
</div>
<div>
    <asp:Button ID="Button1" runat="server" CssClass="btn01" Text="添加考场" 
        onclick="Button1_Click" />
&nbsp;&nbsp;
    <asp:Button ID="Button2" runat="server" CssClass="btn01" Text="删除考场" 
        onclick="Button2_Click" />
&nbsp;&nbsp;
    <asp:Button ID="Button3" runat="server" CssClass="btn01" Text="导出Excel" 
        onclick="Button3_Click" />
</div>
    <asp:Panel ID="Panel1" runat="server" Visible="False">
        <table class="style1" cellpadding="2" cellspacing="0" 
            style="border-top-style: solid; border-left-style: solid; border-width: thin; border-color: #999999">
            <tr>
                <td align="right" width="7%" 
                    style="border-right-style: solid; border-bottom-style: solid; border-width: thin; border-color: #999999">
                    考场序号：</td>
                <td style="border-right-style: solid; border-bottom-style: solid; border-width: thin; border-color: #999999" 
                    width="8%">
                    <asp:TextBox ID="TextBox1" runat="server" Width="91px" CssClass="tbox"></asp:TextBox>
                </td>
                <td align="right" 
                    style="border-right-style: solid; border-bottom-style: solid; border-width: thin; border-color: #999999" 
                    width="7%">
                    考试地点：</td>
                <td style="border-right-style: solid; border-bottom-style: solid; border-width: thin; border-color: #999999">
                    <asp:TextBox ID="TextBox2" runat="server" Width="385px" CssClass="tbox"></asp:TextBox>
                </td>
                <td align="right" 
                    style="border-right-style: solid; border-bottom-style: solid; border-width: thin; border-color: #999999" 
                    width="7%">
                    可考人数：</td>
                <td style="border-right-style: solid; border-bottom-style: solid; border-width: thin; border-color: #999999" 
                    width="8%">
                    <asp:TextBox ID="TextBox3" runat="server" Width="91px" CssClass="tbox"></asp:TextBox>
                </td>
                <td align="right" 
                    style="border-right-style: solid; border-bottom-style: solid; border-width: thin; border-color: #999999" 
                    width="8%">
                    是否为专用考场：</td>
                <td style="border-right-style: solid; border-bottom-style: solid; border-width: thin; border-color: #999999" 
                    width="15%">
                    <asp:CheckBox ID="CheckBox2" runat="server" />
                </td>
            </tr>
        </table>
        &nbsp;&nbsp;
        <asp:Button ID="Button4" runat="server" CssClass="button" 
            onclick="Button4_Click" Text="保存" />
        &nbsp;
        <asp:Button ID="Button5" runat="server" CssClass="button" 
            onclick="Button5_Click" Text="取消" />
        <br />
    </asp:Panel>
</asp:Content>

